import request from '@/utils/request'

export default{
  tsbyssjPageCondition(current, limit, bysQuery) {
    return request({
      url: `/h/d-bsyxwsqb/getPagetsbysBytj/${current}/${limit}`,
      method: 'post',
      data: bysQuery
    })
  },
  gettsbyssj(current,limit) {
    return request({
      url: `/h/d-bsyxwsqb/getAllPagetsbyssjBytj/${current}/${limit}`,
      method: 'get',
    })
  },
  removeById(Id) {
    return request({
        url: `/h/d-bsyxwsqb/deleteById/${Id}`,
        method: 'delete'
    })
},
  exportdata(exportExcel) {
    return request({
        url: `/excel/exporttsbys`,
        method: 'post',
        data: exportExcel,
        responseType: 'blob'
    })
},

gettsbysById(id) {
  return request({
      url: `/h/d-bsyxwsqb/gettsbysById/${id}`,
      method: 'get',
  })
},
updatetsbysById(updatetsbys) {
  return request({
      url: `/h/d-bsyxwsqb/update`,
      method: 'post',
      data: updatetsbys
  })
},

}
